package com.think.teaching.service;

import com.think.teaching.model.Question;
import com.think.teaching.model.QuestionSelection;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 试题 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
public interface QuestionService extends IService<Question> {
	
	Question AddQuestion(Question question) throws Exception;
		
	Question UpdateQuestion(Question question) throws Exception;
		
	IPage<Map<String, Object>> ListQuestionWithTagAndType(Integer count,Integer page,Integer type,Integer tag,Boolean withoutBan,Integer courseId);
	
	
	Question SetQuestionState(Integer id,Integer state);
	
	List<QuestionSelection> ListQuestionSelection(Integer id,Boolean withoutBan);
}
